package com.gis3c.online.dao;

import com.gis3c.online.common.persistence.annotation.C3OnLineDao;
import com.gis3c.online.entry.PollutionSourceStation;
import com.gis3c.online.entry.StationStatus;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * Created by hukekuan on 2018/3/14.
 */
@C3OnLineDao
public interface PollutionSourceDao {
    /**
     * 根据类型获取站点列表
     * @param subType
     * @param pollCode
     * @return
     */
    public List<PollutionSourceStation> findStationByType(
            @Param("subType") Integer subType,
            @Param("pollCode") Integer pollCode,
            @Param("queryParams") Map<String,Object> queryParams
    );

    /**
     * 根据站点编号获取废气站点列表
     * @param enterpriseCode
     * @return
     */
    public List<PollutionSourceStation> findStationByEnterpriseCode(
            @Param("enterpriseCode") Set<String> enterpriseCode);

    /**
     * 根据类型获取站点状态
     * @param subType
     * @param pollCode
     * @return
     */
    public List<StationStatus> findStationStatusByType(
            @Param("subType") Integer subType,
            @Param("pollCode") Integer pollCode);
}
